package com.mvc.demo.bean;

import java.util.Date;

/**
 * @author H
 * @date 2023/1/5
 */
public class User {

    private String username;
    private Integer age;

    private Date date;
    private Regin regin;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Regin getRegin() {
        return regin;
    }

    public void setRegin(Regin regin) {
        this.regin = regin;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    @Override
    public String toString() {
        return "User{" +
                "username='" + username + '\'' +
                ", age=" + age +
                ", regin=" + regin +
                '}';
    }

}
class Regin {
    private String province;
    private String city;

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    @Override
    public String toString() {
        return "Regin{" +
                "province='" + province + '\'' +
                ", city='" + city + '\'' +
                '}';
    }
}
